import request from '@/utils/request'

/**
 * 获取部门列表
 * @param params 
 * @returns 
 */
export const getDepartmentList = (params?: any) => request.get({ url: '/adminapi/organize.department/lists', params })



/**
 * 添加部门
 * @param data 
 * @returns 
 */
export const saveDepartment = (data: any) => request.post({ url: '/adminapi/organize.department/save', data })

/**
 * 更新部门
 * @param data 
 * @returns 
 */
export const updateDepartment = (data: any) => request.put({ url: '/adminapi/organize.department/update', data })


/**
 * 删除部门
 * @param id 
 * @returns 
 */
export const deleteDepartment = (id: string) => request.delete({ url: `/adminapi/organize.department/delete` , params: { id } })



